package com.starhub.engine.directory.result;

import com.starhub.engine.directory.entity.DirectoryTreeSelect;
import lombok.Data;

import java.util.List;

@Data
public class DirectoryDealTreeResult {
    private List<DirectoryTreeSelect> page;
    private long total;

    public static DirectoryDealTreeResult success(List<DirectoryTreeSelect> page, long total) {
        DirectoryDealTreeResult result = new DirectoryDealTreeResult();
        result.setPage(page);
        result.setTotal(total);
        return result;
    }
}
